﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Data.Objects;
using DataLayer.Entity;

namespace DataLayer.Configuration
{
    public class PersonConfiguration : EntityConfiguration<Person>
    {
        public PersonConfiguration()
        {
            Property(p => p.PersonID).IsIdentity();
            MapHierarchy(p => new
            {
                p.PersonID,
                p.Name,
                p.Email,
            }).ToTable("Person");
        }
    }
}
